﻿<UserControl  
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
     xmlns:igCA="http://infragistics.com/Chart"    
	xmlns:OMANE_Modules_TauxGarantis_ViewModels="clr-namespace:OMANE.Modules.TauxGarantis.ViewModels"
    xmlns:local="clr-namespace:OMANE.Modules.TauxGarantis"
	mc:Ignorable="d"    
	x:Class="Views.ViewGraphModelProjection"
	d:DesignWidth="1124.075" d:DesignHeight="538">

    <UserControl.DataContext>
        <OMANE_Modules_TauxGarantis_ViewModels:ViewModelGraphModelProjection/>
    </UserControl.DataContext>
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.Resources>
            <Style TargetType="ToolTip">
                <Setter Property="Background" Value="White" />
                <Setter Property="BorderBrush" Value="#FF9F50F1" />
                <Setter Property="BorderThickness" Value="2" />
                <Setter Property="FontWeight" Value="Bold" />
                <Setter Property="FontSize" Value="14" />
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="ToolTip">
                            <Border Padding="2" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="5" >
                                <ContentPresenter ContentSource="Content" />
                            </Border>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </Grid.Resources>
        <TextBlock x:Name="commentTxt" TextWrapping="Wrap" Text="(Active Page Comment and DEscription )" d:LayoutOverrides="Height" FontSize="32" FontWeight="Bold" HorizontalAlignment="Center" Margin="0,5" VerticalAlignment="Center"/>
        <StackPanel Orientation="Horizontal" Margin="0,0,5,0" HorizontalAlignment="Right"  VerticalAlignment="Center">
            <Button Content="&lt;&lt;" Margin="0,0,5,0" Click="ButtonPrevious_Click" Padding="2" FontWeight="Bold" />
            <Button Content="&gt;&gt;" Margin="5,0,0,0" Click="ButtonNext_Click" Padding="2" />
        </StackPanel>
        <Grid x:Name="grdAll" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.RowSpan="2">
               <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <igCA:XamChart Grid.Column="1" EndPaletteBrush="Blue" StartPaletteBrush="Blue">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:P0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis> 
                            </igCA:XamChart.Axes>
                        <igCA:XamChart.Legend>
                            <igCA:Legend Visible="False" />
                        </igCA:XamChart.Legend>
                        <igCA:XamChart.Caption>
                            <igCA:Caption Text="ROE Globaux"/>
                        </igCA:XamChart.Caption>
                        <igCA:XamChart.Series>
                            <igCA:Series   
							ChartType="ScatterLine" StrokeThickness="2"
							DataSource="{Binding ROEGLOBAL, Mode=OneWay}" 
							DataMapping="ValueX=X;ValueY=Y">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>
                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                </Grid>
            </Border>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" Grid.Row="2" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.RowSpan="2" >
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <igCA:XamChart Grid.Column="1" EndPaletteBrush="Red" StartPaletteBrush="Red">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:N0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Legend>
                            <igCA:Legend Visible="False" />
                        </igCA:XamChart.Legend>
                        <igCA:XamChart.Caption>
                            <igCA:Caption Text="Nombre de cotisants en fin de période"/>
                        </igCA:XamChart.Caption>
                        <igCA:XamChart.Series>
                            <igCA:Series   
							ChartType="ScatterLine" StrokeThickness="2"
							DataSource="{Binding NBCOTISANTGLOBAL, Mode=OneWay}" 
							DataMapping="ValueX=X;ValueY=Y">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>
                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                </Grid>
            </Border>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" Grid.Row="4" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.RowSpan="2">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <igCA:XamChart Grid.Column="1" EndPaletteBrush="Green" StartPaletteBrush="Green">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:N0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Legend>
                            <igCA:Legend Visible="False" />
                        </igCA:XamChart.Legend>
                        <igCA:XamChart.Caption>
                            <igCA:Caption Text="Evolution du nombre de sinistres"/>
                        </igCA:XamChart.Caption>

                        <igCA:XamChart.Series>
                            <igCA:Series   
							ChartType="ScatterLine" StrokeThickness="2"
							DataSource="{Binding NBSINISTRESGLOBAL, Mode=OneWay}" 
							DataMapping="ValueX=X;ValueY=Y">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>
                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                </Grid>
            </Border>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.Column="1" Grid.RowSpan="3">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <igCA:XamChart x:Name="xamChart">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:N0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Legend>
                            <igCA:Legend FontWeight="Bold" BorderThickness="1,0,0,0" BorderBrush="Black" Visible="False"/>
                        </igCA:XamChart.Legend>

                        <igCA:XamChart.Series>
                            <igCA:Series   
								   Label="Primes Commerciales"
								   Fill="Red"
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding TOPRIGHTGRAPHDATAGLOBAL, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y1" >
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y1" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                            <igCA:Series   
								 Label="Primes Techniques"
								   Fill="YellowGreen"
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding TOPRIGHTGRAPHDATAGLOBAL, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y2">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y2" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                            <igCA:Series 
                                Label="Sinistres"
								   Fill="Green"
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding TOPRIGHTGRAPHDATAGLOBAL, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y3">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y3" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                            <igCA:Series 
                                Label="Provisions Théoriques"
								   Fill="Blue"
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding TOPRIGHTGRAPHDATAGLOBAL, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y4">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y4" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>


                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                    <ListBox Grid.Row="2" ItemsSource="{Binding Series, ElementName=xamChart}" HorizontalAlignment="Center" Foreground="White" BorderThickness="0" Margin="0,2,0,0">
                        <ListBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="Horizontal"	/>
                            </ItemsPanelTemplate>

                        </ListBox.ItemsPanel>
                        <ListBox.ItemContainerStyle>
                            <Style TargetType="ListBoxItem">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="ListBoxItem">
                                            <!--<StackPanel Orientation="Horizontal">-->
                                            <Grid>
                                                <Rectangle Fill="{Binding Fill}" Height="20" />
                                                <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5,0" Text="{Binding Label}" />
                                            </Grid>
                                            <!--</StackPanel>-->
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </ListBox.ItemContainerStyle>
                    </ListBox>
                </Grid>

            </Border>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" Grid.Row="3" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.Column="1" Grid.RowSpan="3">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <igCA:XamChart Name="xamChart21">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:P0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Caption>
                            <igCA:Caption Text="Ratio S/P annuels"/>
                        </igCA:XamChart.Caption>
                        <igCA:XamChart.Legend>
                            <igCA:Legend FontWeight="Bold" BorderThickness="1,0,0,0" BorderBrush="Black" Visible="False"/>
                        </igCA:XamChart.Legend>
                        <igCA:XamChart.Series>
                            <igCA:Series   
                                 Label="S/P Technique"
                                Fill="Red"
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding BOTTOMRIGHTGRAPHDATAGLOBAL, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y1">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y1" ConverterParameter="{}{0:P0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                            <igCA:Series  
                                 Label="S/P Commercial"
                                Fill="Green"
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding BOTTOMRIGHTGRAPHDATAGLOBAL, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y2">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y2" ConverterParameter="{}{0:P0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>
                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                    <ListBox Grid.Row="2" ItemsSource="{Binding Series, ElementName=xamChart21}" HorizontalAlignment="Center" Foreground="White" BorderThickness="0" Margin="0,2,0,0">
                        <ListBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="Horizontal"	/>
                            </ItemsPanelTemplate>

                        </ListBox.ItemsPanel>
                        <ListBox.ItemContainerStyle>
                            <Style TargetType="ListBoxItem">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="ListBoxItem">
                                            <!--<StackPanel Orientation="Horizontal">-->
                                            <Grid>
                                                <Rectangle Fill="{Binding Fill}" Height="20" />
                                                <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5,0" Text="{Binding Label}" />
                                            </Grid>
                                            <!--</StackPanel>-->
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </ListBox.ItemContainerStyle>
                    </ListBox>
                </Grid>
            </Border>
        </Grid>
        <Grid x:Name="grdDC" Grid.Row="1" d:IsHidden="True">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.RowSpan="2">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <igCA:XamChart Grid.Column="1" EndPaletteBrush="Blue" StartPaletteBrush="Blue">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:P0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Legend>
                            <igCA:Legend Visible="False" />
                        </igCA:XamChart.Legend>
                        <igCA:XamChart.Caption>
                            <igCA:Caption Text="ROE Globaux"/>
                        </igCA:XamChart.Caption>

                        <igCA:XamChart.Series>
                            <igCA:Series   
							ChartType="ScatterLine" StrokeThickness="2"
							DataSource="{Binding ROEDC, Mode=OneWay}" 
							DataMapping="ValueX=X;ValueY=Y">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>
                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                </Grid>
            </Border>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" Grid.Row="2" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.RowSpan="2" >
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <igCA:XamChart Grid.Column="1" EndPaletteBrush="Red" StartPaletteBrush="Red">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:N0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Legend>
                            <igCA:Legend Visible="False" />
                        </igCA:XamChart.Legend>
                        <igCA:XamChart.Caption>
                            <igCA:Caption Text="Nombre de cotisants en fin de période"/>
                        </igCA:XamChart.Caption>

                        <igCA:XamChart.Series>
                            <igCA:Series   
							ChartType="ScatterLine" StrokeThickness="2"
							DataSource="{Binding NBCOTISANTDC, Mode=OneWay}" 
							DataMapping="ValueX=X;ValueY=Y">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>
                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                </Grid>
            </Border>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" Grid.Row="4" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.RowSpan="2">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <igCA:XamChart Grid.Column="1" EndPaletteBrush="Green" StartPaletteBrush="Green">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:N0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Legend>
                            <igCA:Legend Visible="False" />
                        </igCA:XamChart.Legend>
                        <igCA:XamChart.Caption>
                            <igCA:Caption Text="Evolution du nombre de sinistres"/>
                        </igCA:XamChart.Caption>

                        <igCA:XamChart.Series>
                            <igCA:Series   
							ChartType="ScatterLine" StrokeThickness="2"
							DataSource="{Binding NBSINISTRESDC, Mode=OneWay}" 
							DataMapping="ValueX=X;ValueY=Y">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>
                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                </Grid>
            </Border>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.Column="1" Grid.RowSpan="3">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <igCA:XamChart Name="xamChart2">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:N0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Legend>
                            <igCA:Legend FontWeight="Bold" BorderThickness="1,0,0,0" BorderBrush="Black" Visible="False"/>
                        </igCA:XamChart.Legend>

                        <igCA:XamChart.Series>
                            <igCA:Series  
                                 Label="Primes Commerciales"
								   Fill="Red"
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding TOPRIGHTGRAPHDATADC, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y1">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y1" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                            <igCA:Series  
                                 Label="Primes Techniques"
								   Fill="YellowGreen"
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding TOPRIGHTGRAPHDATADC, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y2">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y2" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                            <igCA:Series   
                                 Label="Sinistres"
								   Fill="Green"
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding TOPRIGHTGRAPHDATADC, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y3">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y3" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                            <igCA:Series 
                                 Label="Provisions Théoriques"
								   Fill="Blue"
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding TOPRIGHTGRAPHDATADC, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y4">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y4" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>

                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                    <ListBox Grid.Row="2" ItemsSource="{Binding Series, ElementName=xamChart2}" HorizontalAlignment="Center" Foreground="White" BorderThickness="0" Margin="0,2,0,0">
                        <ListBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="Horizontal"	/>
                            </ItemsPanelTemplate>

                        </ListBox.ItemsPanel>
                        <ListBox.ItemContainerStyle>
                            <Style TargetType="ListBoxItem">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="ListBoxItem">
                                            <!--<StackPanel Orientation="Horizontal">-->
                                            <Grid>
                                                <Rectangle Fill="{Binding Fill}" Height="20" />
                                                <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5,0" Text="{Binding Label}" />
                                            </Grid>
                                            <!--</StackPanel>-->
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </ListBox.ItemContainerStyle>
                    </ListBox>
                </Grid>
            </Border>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" Grid.Row="3" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.Column="1" Grid.RowSpan="3">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <igCA:XamChart Name="xamChart22">

                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:P0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Caption>
                            <igCA:Caption Text="Ratio S/P annuels"/>
                        </igCA:XamChart.Caption>
                        <igCA:XamChart.Legend>
                            <igCA:Legend FontWeight="Bold" BorderThickness="1,0,0,0" BorderBrush="Black" Visible="False"/>
                        </igCA:XamChart.Legend>

                        <igCA:XamChart.Series>
                            <igCA:Series   
                                Label="S/P Technique"
                                Fill="Red"
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding BOTTOMRIGHTGRAPHDATADC, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y1">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y1" ConverterParameter="{}{0:P0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                            <igCA:Series   
                                 Label="S/P Commercial"
                                Fill="Green"
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding BOTTOMRIGHTGRAPHDATADC, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y2">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y2" ConverterParameter="{}{0:P0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>

                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                    <ListBox Grid.Row="2" ItemsSource="{Binding Series, ElementName=xamChart22}" HorizontalAlignment="Center" Foreground="White" BorderThickness="0" Margin="0,2,0,0">
                        <ListBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="Horizontal"	/>
                            </ItemsPanelTemplate>

                        </ListBox.ItemsPanel>
                        <ListBox.ItemContainerStyle>
                            <Style TargetType="ListBoxItem">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="ListBoxItem">
                                            <!--<StackPanel Orientation="Horizontal">-->
                                            <Grid>
                                                <Rectangle Fill="{Binding Fill}" Height="20" />
                                                <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5,0" Text="{Binding Label}" />
                                            </Grid>
                                            <!--</StackPanel>-->
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </ListBox.ItemContainerStyle>
                    </ListBox>
                </Grid>

            </Border>
        </Grid>
        <Grid x:Name="grdINCAP" Grid.Row="1" d:IsHidden="True">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
            </Grid.RowDefinitions>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.RowSpan="2">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <igCA:XamChart Grid.Column="1" EndPaletteBrush="Blue" StartPaletteBrush="Blue">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:P0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Legend>
                            <igCA:Legend Visible="False" />
                        </igCA:XamChart.Legend>
                        <igCA:XamChart.Caption>
                            <igCA:Caption Text="ROE Globaux"/>
                        </igCA:XamChart.Caption>

                        <igCA:XamChart.Series>
                            <igCA:Series   
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding ROEINCAP, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>
                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                </Grid>
            </Border>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" Grid.Row="2" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.RowSpan="2" >
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <igCA:XamChart Grid.Column="1" EndPaletteBrush="Red" StartPaletteBrush="Red">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:N0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Legend>
                            <igCA:Legend Visible="False" />
                        </igCA:XamChart.Legend>
                        <igCA:XamChart.Caption>
                            <igCA:Caption Text="Nombre de cotisants en fin de période"/>
                        </igCA:XamChart.Caption>

                        <igCA:XamChart.Series>
                            <igCA:Series   
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding NBCOTISANTINCAP, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>
                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                </Grid>
            </Border>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" Grid.Row="4" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.RowSpan="2">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <igCA:XamChart Grid.Column="1" EndPaletteBrush="Green" StartPaletteBrush="Green">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:N0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Legend>
                            <igCA:Legend Visible="False" />
                        </igCA:XamChart.Legend>
                        <igCA:XamChart.Caption>
                            <igCA:Caption Text="Evolution du nombre de sinistres"/>
                        </igCA:XamChart.Caption>

                        <igCA:XamChart.Series>
                            <igCA:Series   
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding NBSINISTRESINCAP, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>
                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                </Grid>
            </Border>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.Column="1" Grid.RowSpan="3">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <igCA:XamChart Name="xamChart3">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:N0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Legend>
                            <igCA:Legend FontWeight="Bold" BorderThickness="1,0,0,0" BorderBrush="Black" Visible="False"/>
                        </igCA:XamChart.Legend>

                        <igCA:XamChart.Series>
                            <igCA:Series   
                                Label="Primes Commerciales"
                                Fill="Red" 
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding TOPRIGHTGRAPHDATAINCAP, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y1">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y1" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                            <igCA:Series   
                                Label="Primes Techniques"
                                Fill="YellowGreen" 
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding TOPRIGHTGRAPHDATAINCAP, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y2">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y2" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                            <igCA:Series  
                                Label="Sinistres"
                                Fill="Green" 
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding TOPRIGHTGRAPHDATAINCAP, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y3">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y3" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                            <igCA:Series 
                                Label="Provisions Théoriques"
                                Fill="Blue" 
                                StrokeThickness="2"
        							DataSource="{Binding TOPRIGHTGRAPHDATAINCAP, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y4" ChartType="ScatterLine">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y4" ConverterParameter="{}{0:N0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>

                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                    <ListBox Grid.Row="2" ItemsSource="{Binding Series, ElementName=xamChart3}" HorizontalAlignment="Center" Foreground="White" BorderThickness="0" Margin="0,2,0,0">
                        <ListBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="Horizontal"	/>
                            </ItemsPanelTemplate>

                        </ListBox.ItemsPanel>
                        <ListBox.ItemContainerStyle>
                            <Style TargetType="ListBoxItem">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="ListBoxItem">
                                            <!--<StackPanel Orientation="Horizontal">-->
                                            <Grid>
                                                <Rectangle Fill="{Binding Fill}" Height="20" />
                                                <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5,0" Text="{Binding Label}" />
                                            </Grid>
                                            <!--</StackPanel>-->
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </ListBox.ItemContainerStyle>
                    </ListBox>
                </Grid>
            </Border>
            <Border BorderBrush="#FF9F50F1" BorderThickness="3" Grid.Row="3" CornerRadius="10" Margin="5,5,5,5" Padding="10" Grid.Column="1" Grid.RowSpan="3">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <igCA:XamChart Name="xamChart23">
                        <igCA:XamChart.Axes>
                            <igCA:Axis AutoRange="{Binding AutoAxis, Mode=OneWay}" Maximum="{Binding YearAxisMaximum}" Minimum="{Binding YearAxisMinimum}" Unit="{Binding YearAxisUnit}"/>
                            <igCA:Axis AxisType="PrimaryY">
                                <igCA:Axis.Label>
                                    <igCA:Label Format="{}{0:P0}" />
                                </igCA:Axis.Label>
                            </igCA:Axis>
                        </igCA:XamChart.Axes>
                        <igCA:XamChart.Caption>
                            <igCA:Caption Text="Ratio S/P annuels"/>
                        </igCA:XamChart.Caption>
                        <igCA:XamChart.Legend>
                            <igCA:Legend FontWeight="Bold" BorderThickness="1,0,0,0" BorderBrush="Black" Visible="False"/>
                        </igCA:XamChart.Legend>

                        <igCA:XamChart.Series>
                            <igCA:Series   
                                 Label="S/P Technique"
                                Fill="Red"
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding BOTTOMRIGHTGRAPHDATAINCAP, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y1">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y1" ConverterParameter="{}{0:P0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                            <igCA:Series   
                                 Label="S/P Commercial"
                                Fill="Green" 
        							ChartType="ScatterLine" StrokeThickness="2"
        							DataSource="{Binding BOTTOMRIGHTGRAPHDATAINCAP, Mode=OneWay}" 
        							DataMapping="ValueX=X;ValueY=Y2">
                                <igCA:Series.Marker>
                                    <igCA:Marker Foreground="{x:Null}"/>
                                </igCA:Series.Marker>
                                <igCA:Series.Animation>
                                    <igCA:Animation/>
                                </igCA:Series.Animation>
                                <igCA:Series.Resources>
                                    <Style TargetType="{x:Type igCA:DataPoint}">
                                        <Setter Property="ToolTip">
                                            <Setter.Value>
                                                <Binding Path="Y2" ConverterParameter="{}{0:P0}">
                                                    <Binding.Converter>
                                                        <local:SPConverter />
                                                    </Binding.Converter>
                                                </Binding>
                                            </Setter.Value>
                                        </Setter>
                                    </Style>
                                </igCA:Series.Resources>
                            </igCA:Series>
                        </igCA:XamChart.Series>

                    </igCA:XamChart>
                    <TextBlock TextAlignment="Center"  Grid.ColumnSpan="2" Grid.Row="1" Text="Année de déroulement" />
                    <ListBox Grid.Row="2" ItemsSource="{Binding Series, ElementName=xamChart23}" HorizontalAlignment="Center" Foreground="White" BorderThickness="0" Margin="0,2,0,0">
                        <ListBox.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="Horizontal"	/>
                            </ItemsPanelTemplate>

                        </ListBox.ItemsPanel>
                        <ListBox.ItemContainerStyle>
                            <Style TargetType="ListBoxItem">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="ListBoxItem">
                                            <!--<StackPanel Orientation="Horizontal">-->
                                            <Grid>
                                                <Rectangle Fill="{Binding Fill}" Height="20" />
                                                <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5,0" Text="{Binding Label}" />
                                            </Grid>
                                            <!--</StackPanel>-->
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </ListBox.ItemContainerStyle>
                    </ListBox>
                </Grid>
            </Border>
        </Grid>
    </Grid>
</UserControl>